home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / shared_lib / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-09  |  988 b   |  45 lines

  1.  
  2. /*
  3.  *  DEFS.H
  4.  *
  5.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  6.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  7.  *    DICE-LICENSE.TXT.
  8.  */
  9.  
  10. #define abs
  11. #include <exec/types.h>
  12. #include <exec/ports.h>
  13. #include <exec/semaphores.h>
  14. #include <exec/libraries.h>
  15. #include <exec/memory.h>
  16. #include <clib/exec_protos.h>
  17. #include <clib/alib_protos.h>
  18. #include <string.h>
  19.  
  20. #define HSIZE    128
  21. #define HMASK    (HSIZE-1)
  22.  
  23. #define CSIZE    64    /*  memory cache list size */
  24. #define CMAXMEM 32    /*  max cached blocks per array index */
  25.  
  26. #define LibCall __geta4 __regargs
  27. #define Prototype extern
  28.  
  29. typedef struct Message Message;
  30. typedef struct Library Library;
  31. typedef struct Node    Node;
  32. typedef struct List    List;
  33. typedef struct SignalSemaphore SignalSemaphore;
  34.  
  35. /*
  36.  *  include lib-protos.h AFTER our typedefs (though it doesn't matter in
  37.  *  this particular test case)
  38.  */
  39.  
  40. #include <lib-protos.h>
  41.  
  42. extern const char LibName[];
  43. extern const char LibId[];
  44.  
  45.